﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TuLing.Blazor.Migrations
{
    public partial class aadf : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 1L, 1200.00m, "F20230101", new DateTime(2023, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "销售收入", "销售商品收入" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 2L, -800.00m, "F20230102", new DateTime(2023, 1, 2, 0, 0, 0, 0, DateTimeKind.Unspecified), "采购支出", "采购原材料" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 3L, -300.00m, "F20230103", new DateTime(2023, 1, 3, 0, 0, 0, 0, DateTimeKind.Unspecified), "办公支出", "购买办公用品" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 4L, 1500.00m, "F20230104", new DateTime(2023, 1, 4, 0, 0, 0, 0, DateTimeKind.Unspecified), "销售收入", "销售商品收入" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 5L, -400.00m, "F20230105", new DateTime(2023, 1, 5, 0, 0, 0, 0, DateTimeKind.Unspecified), "运输支出", "物流运输费" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 6L, -2000.00m, "F20230106", new DateTime(2023, 1, 6, 0, 0, 0, 0, DateTimeKind.Unspecified), "工资支出", "发放员工工资" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 7L, 1800.00m, "F20230107", new DateTime(2023, 1, 7, 0, 0, 0, 0, DateTimeKind.Unspecified), "销售收入", "销售商品收入" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 8L, -900.00m, "F20230108", new DateTime(2023, 1, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), "采购支出", "采购原材料" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 9L, 600.00m, "F20230109", new DateTime(2023, 1, 9, 0, 0, 0, 0, DateTimeKind.Unspecified), "利息收入", "银行存款利息" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 10L, -150.00m, "F20230110", new DateTime(2023, 1, 10, 0, 0, 0, 0, DateTimeKind.Unspecified), "办公支出", "购买办公用品" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 11L, 2000.00m, "F20230201", new DateTime(2023, 2, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "销售收入", "销售商品收入" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 12L, -1200.00m, "F20230202", new DateTime(2023, 2, 2, 0, 0, 0, 0, DateTimeKind.Unspecified), "采购支出", "采购原材料" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 13L, -350.00m, "F20230203", new DateTime(2023, 2, 3, 0, 0, 0, 0, DateTimeKind.Unspecified), "办公支出", "购买办公用品" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 14L, 1700.00m, "F20230204", new DateTime(2023, 2, 4, 0, 0, 0, 0, DateTimeKind.Unspecified), "销售收入", "销售商品收入" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 15L, -500.00m, "F20230205", new DateTime(2023, 2, 5, 0, 0, 0, 0, DateTimeKind.Unspecified), "运输支出", "物流运输费" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 16L, -2100.00m, "F20230206", new DateTime(2023, 2, 6, 0, 0, 0, 0, DateTimeKind.Unspecified), "工资支出", "发放员工工资" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 17L, 1600.00m, "F20230207", new DateTime(2023, 2, 7, 0, 0, 0, 0, DateTimeKind.Unspecified), "销售收入", "销售商品收入" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 18L, -950.00m, "F20230208", new DateTime(2023, 2, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), "采购支出", "采购原材料" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 19L, 700.00m, "F20230209", new DateTime(2023, 2, 9, 0, 0, 0, 0, DateTimeKind.Unspecified), "利息收入", "银行存款利息" });

            migrationBuilder.InsertData(
                table: "Finance",
                columns: new[] { "Id", "Amount", "Code", "Date", "Item", "Remark" },
                values: new object[] { 20L, -180.00m, "F20230210", new DateTime(2023, 2, 10, 0, 0, 0, 0, DateTimeKind.Unspecified), "办公支出", "购买办公用品" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 1L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 2L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 3L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 4L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 5L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 6L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 7L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 8L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 9L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 10L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 11L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 12L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 13L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 14L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 15L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 16L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 17L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 18L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 19L);

            migrationBuilder.DeleteData(
                table: "Finance",
                keyColumn: "Id",
                keyValue: 20L);
        }
    }
}
